<template>
	<view 
		class="newpassword" 
		:style="{minHeight: pageHeight + 'px', background: '#F7F8FA',paddingTop: '10px'}"
		 style="
		 width: 100%;
		 background-color: #fff;
		 border-radius: 10px;
		 box-sizing: border-box;">
			
			<view style="width: 345px;margin: 0 auto 15px auto;display: flex;align-items: center;background-color: #fff;padding: 15px;">
				<text style="flex: 0 0 90px;font-size: 14px;">旧密码</text>
				<view style="flex: 1;text-align: right;display: flex;align-items: center;width: 100%;justify-content: flex-end;font-size: 14px;">
					<u--input
					    placeholder="请输入旧密码"
					    border="none"
					  ></u--input>
				</view>
			</view>
			
			<view style="width: 345px;margin: 0 auto 15px auto;display: flex;align-items: center;background-color: #fff;padding: 15px;">
				<text style="flex: 0 0 90px;font-size: 14px;">新密码</text>
				<view style="flex: 1;text-align: right;display: flex;align-items: center;width: 100%;justify-content: flex-end;font-size: 14px;">
					<u--input
					    placeholder="请输入新密码"
					    border="none"
					  ></u--input>
				</view>
			</view>
		<view class="outlogin">
			确定修改
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pageHeight: 100
			}
		},
		created() {
			this.$nextTick(() => {
				uni.getSystemInfo({
				  success: (res) => {  
					this.pageHeight = res.windowHeight
				  }  
				});
				
		
			})
		},
	}
	
</script>

<style lang="scss" scoped>
	.outlogin {
		width: 345px;
		height: 50px;
		background: #F22828;
		border-radius: 10px;
		color: #fff;
		text-align: center;
		margin: 30px auto;
		line-height: 50px;
		font-size: 14px;
	}
</style>